home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 14 / CU Amiga Magazine's Super CD-ROM 14 (1997)(EMAP Images)(GB)(Track 1 of 3)[!][issue 1997-09].iso / CUCD / Programming / RKMLibsPrgs / samplelibrary / lib / sample_lvos.asm next >
Assembly Source File  |  1992-09-03  |  3KB  |  74 lines

  1. ***************************************************************************
  2. * sample_lvos.asm   _LVO definitions
  3. *
  4. *  This is the .fd file for our sample library:
  5. *
  6. * Note - the slash in (D0/D1) means that a stub-maker can use MOVEM.L to
  7. * load these registers from the stack, rather than using a separate MOVE
  8. * instruction for each register. Alternately, something like  (A0,D2) would
  9. * show that a separate MOVE instruction is needed for each load.
  10. *
  11. *       ##base _SampleBase
  12. *       ##bias 30
  13. *       ##public
  14. *       Double(n1)(D0)
  15. *       AddThese(n1,n2)(D0/D1)
  16. *       ##end
  17. *
  18. * After assembling,
  19. *   JOIN sample_stubs.o sample_lvos.o AS sample.lib
  20. *
  21. * Apps LINK with LIBRARY sample.lib when calling sample.library functions
  22. *
  23. *
  24. * Copyright (c) 1992 Commodore-Amiga, Inc.
  25. *
  26. * This example is provided in electronic form by Commodore-Amiga, Inc. for
  27. * use with the "Amiga ROM Kernel Reference Manual: Libraries", 3rd Edition,
  28. * published by Addison-Wesley (ISBN 0-201-56774-1).
  29. *
  30. * The "Amiga ROM Kernel Reference Manual: Libraries" contains additional
  31. * information on the correct usage of the techniques and operating system
  32. * functions presented in these examples.  The source and executable code
  33. * of these examples may only be distributed in free electronic form, via
  34. * bulletin board or as part of a fully non-commercial and freely
  35. * redistributable diskette.  Both the source and executable code (including
  36. * comments) must be included, without modification, in any copy.  This
  37. * example may not be published in printed form or distributed with any
  38. * commercial product.  However, the programming techniques and support
  39. * routines set forth in these examples may be used in the development
  40. * of original executable software products for Commodore Amiga computers.
  41. *
  42. * All other rights reserved.
  43. *
  44. * This example is provided "as-is" and is subject to change; no
  45. * warranties are made.  All use is at your own risk. No liability or
  46. * responsibility is assumed.
  47. ***************************************************************************
  48.  
  49.    INCLUDE  "exec/types.i"
  50.    INCLUDE  "exec/libraries.i"
  51.  
  52.           SECTION data
  53.  
  54. *----- LIBINIT initializes an LVO value to -30 to skip the first four
  55. *----- 6-byte required library vectors (Open, Expunge, etc)
  56.  
  57.              LIBINIT
  58.  
  59. *----- LIBDEF assigns the current LVO value to a label, and then
  60. *----- bumps the LVO value by -6 in preparation for next LVO label
  61.  
  62. *----- This assigns the value -30 to our first _LVO label
  63.  
  64.              LIBDEF      _LVODouble     ;-30
  65.              XDEF        _LVODouble
  66.  
  67. *----- The value -30-6 is asigned to our second _LVO label
  68.  
  69.              LIBDEF      _LVOAddThese   ;-36
  70.              XDEF        _LVOAddThese
  71.  
  72.              END
  73.  
  74.